package com.axin.entity.example;

import java.util.ArrayList;
import java.util.List;

public class HbSymbolsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HbSymbolsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSymbolIsNull() {
            addCriterion("symbol is null");
            return (Criteria) this;
        }

        public Criteria andSymbolIsNotNull() {
            addCriterion("symbol is not null");
            return (Criteria) this;
        }

        public Criteria andSymbolEqualTo(String value) {
            addCriterion("symbol =", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolNotEqualTo(String value) {
            addCriterion("symbol <>", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolGreaterThan(String value) {
            addCriterion("symbol >", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolGreaterThanOrEqualTo(String value) {
            addCriterion("symbol >=", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolLessThan(String value) {
            addCriterion("symbol <", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolLessThanOrEqualTo(String value) {
            addCriterion("symbol <=", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolLike(String value) {
            addCriterion("symbol like", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolNotLike(String value) {
            addCriterion("symbol not like", value, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolIn(List<String> values) {
            addCriterion("symbol in", values, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolNotIn(List<String> values) {
            addCriterion("symbol not in", values, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolBetween(String value1, String value2) {
            addCriterion("symbol between", value1, value2, "symbol");
            return (Criteria) this;
        }

        public Criteria andSymbolNotBetween(String value1, String value2) {
            addCriterion("symbol not between", value1, value2, "symbol");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyIsNull() {
            addCriterion("base_currency is null");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyIsNotNull() {
            addCriterion("base_currency is not null");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyEqualTo(String value) {
            addCriterion("base_currency =", value, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyNotEqualTo(String value) {
            addCriterion("base_currency <>", value, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyGreaterThan(String value) {
            addCriterion("base_currency >", value, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyGreaterThanOrEqualTo(String value) {
            addCriterion("base_currency >=", value, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyLessThan(String value) {
            addCriterion("base_currency <", value, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyLessThanOrEqualTo(String value) {
            addCriterion("base_currency <=", value, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyLike(String value) {
            addCriterion("base_currency like", value, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyNotLike(String value) {
            addCriterion("base_currency not like", value, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyIn(List<String> values) {
            addCriterion("base_currency in", values, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyNotIn(List<String> values) {
            addCriterion("base_currency not in", values, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyBetween(String value1, String value2) {
            addCriterion("base_currency between", value1, value2, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andBaseCurrencyNotBetween(String value1, String value2) {
            addCriterion("base_currency not between", value1, value2, "baseCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyIsNull() {
            addCriterion("quote_currency is null");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyIsNotNull() {
            addCriterion("quote_currency is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyEqualTo(String value) {
            addCriterion("quote_currency =", value, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyNotEqualTo(String value) {
            addCriterion("quote_currency <>", value, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyGreaterThan(String value) {
            addCriterion("quote_currency >", value, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyGreaterThanOrEqualTo(String value) {
            addCriterion("quote_currency >=", value, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyLessThan(String value) {
            addCriterion("quote_currency <", value, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyLessThanOrEqualTo(String value) {
            addCriterion("quote_currency <=", value, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyLike(String value) {
            addCriterion("quote_currency like", value, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyNotLike(String value) {
            addCriterion("quote_currency not like", value, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyIn(List<String> values) {
            addCriterion("quote_currency in", values, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyNotIn(List<String> values) {
            addCriterion("quote_currency not in", values, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyBetween(String value1, String value2) {
            addCriterion("quote_currency between", value1, value2, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andQuoteCurrencyNotBetween(String value1, String value2) {
            addCriterion("quote_currency not between", value1, value2, "quoteCurrency");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionIsNull() {
            addCriterion("price_precision is null");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionIsNotNull() {
            addCriterion("price_precision is not null");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionEqualTo(Integer value) {
            addCriterion("price_precision =", value, "pricePrecision");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionNotEqualTo(Integer value) {
            addCriterion("price_precision <>", value, "pricePrecision");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionGreaterThan(Integer value) {
            addCriterion("price_precision >", value, "pricePrecision");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionGreaterThanOrEqualTo(Integer value) {
            addCriterion("price_precision >=", value, "pricePrecision");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionLessThan(Integer value) {
            addCriterion("price_precision <", value, "pricePrecision");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionLessThanOrEqualTo(Integer value) {
            addCriterion("price_precision <=", value, "pricePrecision");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionIn(List<Integer> values) {
            addCriterion("price_precision in", values, "pricePrecision");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionNotIn(List<Integer> values) {
            addCriterion("price_precision not in", values, "pricePrecision");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionBetween(Integer value1, Integer value2) {
            addCriterion("price_precision between", value1, value2, "pricePrecision");
            return (Criteria) this;
        }

        public Criteria andPricePrecisionNotBetween(Integer value1, Integer value2) {
            addCriterion("price_precision not between", value1, value2, "pricePrecision");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionIsNull() {
            addCriterion("amount_precision is null");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionIsNotNull() {
            addCriterion("amount_precision is not null");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionEqualTo(Integer value) {
            addCriterion("amount_precision =", value, "amountPrecision");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionNotEqualTo(Integer value) {
            addCriterion("amount_precision <>", value, "amountPrecision");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionGreaterThan(Integer value) {
            addCriterion("amount_precision >", value, "amountPrecision");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionGreaterThanOrEqualTo(Integer value) {
            addCriterion("amount_precision >=", value, "amountPrecision");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionLessThan(Integer value) {
            addCriterion("amount_precision <", value, "amountPrecision");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionLessThanOrEqualTo(Integer value) {
            addCriterion("amount_precision <=", value, "amountPrecision");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionIn(List<Integer> values) {
            addCriterion("amount_precision in", values, "amountPrecision");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionNotIn(List<Integer> values) {
            addCriterion("amount_precision not in", values, "amountPrecision");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionBetween(Integer value1, Integer value2) {
            addCriterion("amount_precision between", value1, value2, "amountPrecision");
            return (Criteria) this;
        }

        public Criteria andAmountPrecisionNotBetween(Integer value1, Integer value2) {
            addCriterion("amount_precision not between", value1, value2, "amountPrecision");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionIsNull() {
            addCriterion("symbol_partition is null");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionIsNotNull() {
            addCriterion("symbol_partition is not null");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionEqualTo(String value) {
            addCriterion("symbol_partition =", value, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionNotEqualTo(String value) {
            addCriterion("symbol_partition <>", value, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionGreaterThan(String value) {
            addCriterion("symbol_partition >", value, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionGreaterThanOrEqualTo(String value) {
            addCriterion("symbol_partition >=", value, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionLessThan(String value) {
            addCriterion("symbol_partition <", value, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionLessThanOrEqualTo(String value) {
            addCriterion("symbol_partition <=", value, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionLike(String value) {
            addCriterion("symbol_partition like", value, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionNotLike(String value) {
            addCriterion("symbol_partition not like", value, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionIn(List<String> values) {
            addCriterion("symbol_partition in", values, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionNotIn(List<String> values) {
            addCriterion("symbol_partition not in", values, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionBetween(String value1, String value2) {
            addCriterion("symbol_partition between", value1, value2, "symbolPartition");
            return (Criteria) this;
        }

        public Criteria andSymbolPartitionNotBetween(String value1, String value2) {
            addCriterion("symbol_partition not between", value1, value2, "symbolPartition");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}